#include<stdio.h>

struct player
{
	float score[5];
	float total;
};
int main()
{
	int num;
	printf(" Please input the  number of player:\n");
	scanf("%d",&num);
	struct player p[num];
	
	int i,j;
	for(i=0;i<num;i++)
	{
		p[i].total=0;//总分先初始化
		//裁判打分赋值
		printf("now player %d\n",i+1);
		for(j=0;j<5;j++)
		{
			scanf("%f",&p[i].score[j]);
			
			p[i].total+=p[i].score[j];//累加求和
		}
	}
	printf("player\tA\tB\tC\tD\tE\ttotal\n");
	for(i=0;i<num;i++)
	{
		printf("player%d",i);
		for(j=0;j<5;j++)
		{
			printf("\t%.2f",p[i].score[j]);
		}
		printf("\t%.2f\n",p[i].total);
	}

	return 0;
}
